﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

//指定头文件  管理其容器
[CreateAssetMenu(menuName ="CreatManagerVarsContainer")]
public class ManagerVars : ScriptableObject
{
    //获取脚本的方法
    public static ManagerVars GetManagerVars() 
    {
        return Resources.Load<ManagerVars>("ManagerVarsContainer");
    }

    public List<Sprite> bgThemeSpriteList = new List<Sprite>();

    public GameObject normalPlatformPre;//物体
    public GameObject characterPre;//人物

    //移动位置  
    //右边生成就是+nextXPos +nextYPos 
    //左边生成    -nextXPos +nextYPos   
    public float nextXPos = 0.554f, nextYPos = 0.645f;

    //主题图
    public List<Sprite> PlatformSpriteList = new List<Sprite>();

    //平台主题
    public List<GameObject> commonPlatformGroup=new List<GameObject>();
    public List<GameObject> grassPlatformGroup = new List<GameObject>(); 
    public List<GameObject> winterPlatformGroup = new List<GameObject>();
    //左右钉子
    public GameObject spikePlatformLeft;
    public GameObject spikePlatformRight;

    //玩家死亡
    public GameObject deathEffect;
    //吃钻石
    public GameObject diamondPre;
    //所有的皮肤
    public List<Sprite> skinSpriteList = new List<Sprite>();
    //玩家商店购买的皮肤
    public List<Sprite> characterSkinSpriteList = new List<Sprite>();
    //预制体
    public GameObject skinChooseItemPre;
    //皮肤的名字
    public List<string> skinNameList = new List<string>();
    //皮肤价格
    public List<int> skinPrice = new List<int>();


    //音效  -跳，掉落，死亡，钻石，点击
    public AudioClip jumpClip, fallClip, hitClip, diamondClip, buttonClip;
    //是否开启音效
    public Sprite isMusicOn, isMusicOff;
}
